# 定义库文件搜索路径
LDFLAGS += -L/usr/local/lib

thttpd.out: main.c thttpd.c custom_handle.c shmem.c msg_queue_peer.c  cJSON.c
	gcc -o $@ $^ $(LDFLAGS) -lpaho-mqtt3c -lpthread -lmodbus -lcurl -lm

clean:
	rm -rf *.out *.o